package my.scheduler;

import my.commons.ReadCfg;
import my.utils.Constant;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class QuartzLoader {
	public static final Log log = LogFactory.getLog(QuartzLoader.class);

	public static void load() {
		//DelDataAndFile job = new DelDataAndFile();
		try {
			String hour = ReadCfg.getProp(Constant.JOB_DEL_DATA_AND_FILE_PREHOUR, "0");
			String execTime="0 0 "+ hour +" * * ?";
		//	QuartzManager.addJob(Constant.JOB_DEL_DATA_AND_FILE, job.getClass(),execTime);
			log.debug("加载自动任务:"+Constant.JOB_DEL_DATA_AND_FILE);
		} catch (Exception e) {
			log.error("自动任务:清除X日前数据与文件任务异常:",e);
		}
	}
}
